import React, { Component } from "react";

export default class TodoListItem extends Component {
  render() {
    const { todo } = this.props;
    return (
      <div>
        <input type="checkbox" defaultChecked={todo.completed} /> {todo.id} -{" "}
        {todo.title} - {todo.completed ? "已" : "未"}完成 -<button>删除</button>
      </div>
    );
  }
}
